//1.引入
import axios from "axios";
//2.配置信息
let config = {
  baseURL: "http://localhost:8080/",
  //请求超过时间
  timeout: 5000,
  //每次请求携带cookie
  withCredentials: true
}
//3.创建实例
const instance = axios.create(config)
//4.导入
export default instance
